export const getBtnList = (type: string, chileType: string) => {
  const btnlist = <any>{
    '0': [
      {
        name: '指定选商方式',
        typeChange: '111',
        func: () => {
          return Promise.resolve();
        },
      },
      {
        name: '驳回',
        typeChange: '112',
        func: () => {
          return Promise.resolve();
        },
      },
      {
        name: '批量上传供应商选择文件',
        typeChange: '113',
        func: () => {
          return Promise.resolve();
        },
      },
      {
        name: 'Excel导出',
        dis: 'dis',
        typeChange: '114',
        func: () => {
          return Promise.resolve();
        },
      },
      {
        name: 'Excel导入指定选商',
        dis: 'dis',
        typeChange: '115',
        content:
          '请先【Excel导出】，修改“选商方式”信息之后，在进行【Excel导入指定选商】，可对未指定的采购计划，进行选商方式的指定。',
        func: () => {
          return Promise.resolve();
        },
      },
    ],
    '1': [
      {
        name: '确认',
        typeChange: '211',
        func: () => {
          return Promise.resolve();
        },
      },
      // {
      //   name: '保存',
      //   typeChange: '212',
      //   func: () => save(type, chileType, selection),
      // },
      {
        name: '驳回',
        typeChange: '112',
        func: () => {
          return Promise.resolve();
        },
      },
      {
        name: '指定选商方式',
        typeChange: '111',
        func: () => {
          return Promise.resolve();
        },
      },
    ],
    '2': [
      {
        name: '更新供应商',
        typeChange: '311',
        func: () => {
          return Promise.resolve();
        },
      },
      {
        name: '确认生成选商结果',
        typeChange: '312',
        func: () => {
          return Promise.resolve();
        },
      },
      // {
      //   name: '保存',
      //   typeChange: '212',
      //   func: () => save(type, chileType, selection),
      // },
      {
        name: '驳回',
        typeChange: '112',
        func: () => {
          return Promise.resolve();
        },
      },
      {
        name: '指定选商方式',
        typeChange: '111',
        func: () => {
          return Promise.resolve();
        },
      },
      {
        name: 'Excel导出',
        typeChange: '116',
        dis: 'dis',
        func: () => {
          return Promise.resolve();
        },
      },
      {
        name: 'Excel导入',
        typeChange: '117',
        dis: 'dis',
        func: () => {
          return Promise.resolve();
        },
      },
      {
        name: '批量上传供应商选择文件',
        typeChange: '113',
        func: () => {
          return Promise.resolve();
        },
      },
    ],
    '3': [
      {
        name: '确认生成选商结果',
        typeChange: '312',
        func: () => {
          return Promise.resolve();
        },
      },
      // {
      //   name: '保存',
      //   typeChange: '212',
      //   func: () => save(type, chileType, selection),
      // },
      {
        name: '驳回',
        typeChange: '112',
        func: () => {
          return Promise.resolve();
        },
      },
      {
        name: '指定选商方式',
        typeChange: '111',
        func: () => {
          return Promise.resolve();
        },
      },
      {
        name: '批量上传供应商选择文件',
        typeChange: '113',
        func: () => {
          return Promise.resolve();
        },
      },
    ],
    '4': [
      {
        name: '确认生成选商结果',
        typeChange: '312',
        func: () => {
          return Promise.resolve();
        },
      },
      // {
      //   name: '保存',
      //   typeChange: '212',
      //   func: () => save(type, chileType, selection),
      // },
      {
        name: '驳回',
        typeChange: '112',
        func: () => {
          return Promise.resolve();
        },
      },
      {
        name: '指定选商方式',
        typeChange: '111',
        func: () => {
          return Promise.resolve();
        },
      },
      {
        name: '批量上传供应商选择文件',
        typeChange: '113',
        func: () => {
          return Promise.resolve();
        },
      },
    ],
    '5': [
      {
        name: '驳回',
        typeChange: '112',
        func: () => {
          return Promise.resolve();
        },
      },
      // {
      //   name: '发布',
      //   typeChange: '612',
      //   func: () => release(type, chileType, selection),
      // },
      // {
      //   name: '撤销发布',
      //   typeChange: '613',
      //   func: () => unpublish(type, chileType, selection),
      // },
      {
        name: '招标完成生成选商结果',
        typeChange: '614',
        func: () => {
          return Promise.resolve();
        },
      },
      {
        name: '指定选商方式',
        typeChange: '111',
        func: () => {
          return Promise.resolve();
        },
      },
      {
        name: '批量上传供应商选择文件',
        typeChange: '113',
        func: () => {
          return Promise.resolve();
        },
      },
    ],
  };
  return btnlist[`${chileType}`];
};

export default null;
